using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using Microsoft.BizTalk.RuleEngineExtensions;
using Microsoft.RuleEngine;
using System.Xml;
using System.IO;

namespace MyBizTalkApplication.FactRetriever
{
    public class myFactRetriever : IFactRetriever
    {
        public object UpdateFacts(RuleSetInfo rulesetInfo, Microsoft.RuleEngine.RuleEngine engine, object factsHandleIn)
        {
            object factsHandleOut = null;
            if (factsHandleIn == null)
            {

                //				//create an instance of the XML object
                //				XmlDocument xd = new XmlDocument();
                //
                //				//load the document
                //				xd.Load(@"c:\CSfMid.xml");
                //            
                //				//create and instantiate an instance of TXD
                //				TypedXmlDocument doc = new TypedXmlDocument("Microsoft.Csf.Sbe.OrderHandling.ServiceLogic.Schema.Mid",xd);
                //            
                //				engine.Assert(doc);
                //				//engine.Execute();
                //				factsHandleOut = doc;
            }
            else
                factsHandleOut = factsHandleIn;
            return factsHandleOut;
        }
    }



}


